#pragma strict


var mainCamera : GameObject;

private var clickScript : ClickScript;

function Start () {

	clickScript = mainCamera.gameObject.GetComponent("ClickScript");

}


function Update () {

	//update text mesh with appleCount
	GetComponent(TextMesh).text = clickScript.totalCount.ToString();

}
